import { createRouter,createWebHistory,RouteRecordRaw } from "vue-router";

//创建对象数组 将路由地址都放到
const routes:Array<RouteRecordRaw>=[
    {
        path:"/",
        name:"HelloWorld",
        component:()=>import('../components/HelloWorld.vue')
    },
    {
        path:"/Register",
        name:"Register",
        component:()=>import('../view/Users/Register.vue')
    },
    {
        path:"/Home/:Uid",
        name:"Home",
        component:()=>import('../view/Home.vue')
    },
    {
        path:"/Login",
        name:"Login",
        component:()=>import('../view/Users/Login.vue')
    },
    {
        path:"/RegisterInfo/:Uid",
        name:"RegisterInfo",
        component:()=>import('../view/Users/RegisterInfo.vue')
    },
    {
        path:"/UserInfo/:Uid",
        name:"UserInfo",
        component:()=>import('../view/Users/UserInfo.vue')
    },
    {
        path:"/ShowAllUserInfo",
        name:"ShowAllUserInfo",
        component:()=>import('../view/Users/ShowAllUserInfo.vue')
    },
    {
        path:"/AddInvestInfo",
        name:"AddInvestInfo",
        component:()=>import('../view/Invests/AddInvestInfo.vue')
    },
    {
        path:"/ShowInvestInfo",
        name:"ShowInvestInfo",
        component:()=>import('../view/Invests/ShowInvestInfo.vue')
    },
    {
        path:"/EditInvestInfo/:Iid",
        name:"EditInvestInfo",
        component:()=>import('../view/Invests/EditInvestInfo.vue')
    },
    {
        path:"/AddFinaninfo",
        name:"AddFinaninfo",
        component:()=>import('../view/Finans/AddFinaninfo.vue')
    },
    {
        path:"/ShowFinaninfo",
        name:"ShowFinaninfo",
        component:()=>import('../view/Finans/ShowFinaninfo.vue')
    },
    {
        path:"/EditFinaninfo/:Fid",
        name:"EditFinaninfo",
        component:()=>import('../view/Finans/EditFinaninfo.vue')
    },
    {
        path:"/AddBorrowMoney",
        name:"AddBorrowMoney",
        component:()=>import('../view/BorrowMoney/AddBorrowMoney.vue')
    },
    {
        path:"/ShowBorrowMoney",
        name:"ShowBorrowMoney",
        component:()=>import('../view/BorrowMoney/ShowBorrowMoney.vue')
    },
    {
        path:"/EditBorrowMoney/:Bid",
        name:"EditBorrowMoney",
        component:()=>import('../view/BorrowMoney/EditBorrowMoney.vue')
    },
    {
        path:"/ShowUserInvestInfo",
        name:"ShowUserInvestInfo",
        component:()=>import('../view/Invests/ShowUserInvestInfo.vue')
    },
    {
        path:"/AddUserInvestInfo/:Iid",
        name:"AddUserInvestInfo",
        component:()=>import('../view/Invests/AddUserInvestInfo.vue')
    },
    {
        path:"/ShowAdminInvestInfo",
        name:"ShowAdminInvestInfo",
        component:()=>import('../view/Invests/ShowAdminInvestInfo.vue')
    },
    {
        path:"/ShowAllUserInvestInfo/:Iid",
        name:"ShowAllUserInvestInfo",
        component:()=>import('../view/Invests/ShowAllUserInvestInfo.vue')
    },
    {
        path:"/InvestCommon",
        name:"InvestCommon",
        component:()=>import('../view/Invests/InvestCommon.vue')
    },
    {
        path:"/FinanCommon",
        name:"FinanCommon",
        component:()=>import('../view/Finans/FinanCommon.vue')
    },
    {
        path:"/ShowUserFinaninfo",
        name:"ShowUserFinaninfo",
        component:()=>import('../view/Finans/ShowUserFinaninfo.vue')
    },
    {
        path:"/AddUserFinanInfo/:Fid",
        name:"AddUserFinanInfo",
        component:()=>import('../view/Finans/AddUserFinanInfo.vue')
    },
    {
        path:"/ShowUserFinanInfoPage",
        name:"ShowUserFinanInfoPage",
        component:()=>import('../view/Finans/ShowUserFinanInfoPage.vue')
    },
    {
        path:"/ShowAdminFinanInfo/:Fid",
        name:"ShowAdminFinanInfo",
        component:()=>import('../view/Finans/ShowAdminFinanInfo.vue')
    },
    {
        path:"/BorrowCommon",
        name:"BorrowCommon",
        component:()=>import('../view/BorrowMoney/BorrowCommon.vue')
    },
    {
        path:"/ShowUserBorrowMoney",
        name:"ShowUserBorrowMoney",
        component:()=>import('../view/BorrowMoney/ShowUserBorrowMoney.vue')
    },
    {
        path:"/AddUserBorrowMoney/:Bid",
        name:"AddUserBorrowMoney",
        component:()=>import('../view/BorrowMoney/AddUserBorrowMoney.vue')
    },
    {
        path:"/ShowPageBorrowMoney",
        name:"ShowPageBorrowMoney",
        component:()=>import('../view/BorrowMoney/ShowPageBorrowMoney.vue')
    },
    {
        path:"/ShowAdminBorrowMoney/:Bid",
        name:"ShowAdminBorrowMoney",
        component:()=>import('../view/BorrowMoney/ShowAdminBorrowMoney.vue')
    },
    {
        path:"/UserAsset/:Uid",
        name:"UserAsset",
        component:()=>import('../view/Aseet/UserAsset.vue')
    },
    {
        path:"/IdUserInvestInfo",
        name:"IdUserInvestInfo",
        component:()=>import('../view/Invests/ShowIdUserInvestInfo.vue')
    },
    {
        path:"/AddUserInvestRedeem/:UIid",
        name:"AddUserInvestRedeem",
        component:()=>import('../view/Invests/AddUserInvestRedeem.vue')
    },
    {
        path:"/ShowAdminUserRedeem",
        name:"ShowAdminUserRedeem",
        component:()=>import('../view/Invests/ShowAdminUserRedeem.vue')
    },
    {
        path:"/ShowUserRedeemPage/:Iid",
        name:"ShowUserRedeemPage",
        component:()=>import('../view/Invests/ShowUserRedeemPage.vue')
    },
]

//创建路由实例
const router=createRouter({
    history:createWebHistory(),
    routes
})

//导出路由
export default router